package com.fantastic.mapper.zjs;

import com.fantastic.model.pojo.zjs.Workers;

import java.util.List;

/**
 * @author: rxx
 * @since: 2024/5/27 11:13
 * @description: 员工信息dao接口
 */

public interface WorkersMapper {
    /**
     * 查询
     * 无条件时是查询全部的分页查询
     * 有条件时是查询条件的分页查询
     *
     * @param workers
     * @return
     */
    List<Workers> listWorkers(Workers workers);

    /**
     * 查询单个员工信息
     *
     * @param workerId 员工id
     * @return
     */
    Workers getWorkerId(Integer workerId);

    /**
     * 添加员工信息
     *
     * @param workers 员工对象
     * @return
     */
    Integer insertWorkers(Workers workers);

    /**
     * 修改员工信息
     *
     * @param workers
     * @return
     */
    Integer updateWorkers(Workers workers);

    /**
     * 删除员工信息
     *
     * @param workersId
     * @return
     */
    Integer deleteWorkers(Integer workersId);


}
